package com.huang.volatiled;

public class test {
    volatile static int a=1;
    static int b=2;

    public static void main(String[] args) {
        a=a+1;
        b=a+1;
        System.out.println(b);
    }

}
